<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <h:head>
        <title>Sistema de Administración</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="shortcut icon" type="image/png" HREF="${request.contextPath}/img/logoTop.png"/>
        <link rel="icon" type="image/png" HREF="${request.contextPath}/img/logoTop.png"/>
        <link rel="apple-touch-icon" HREF="${request.contextPath}/img/logoTop.png" />  
        <link type="text/css" rel="stylesheet" href="${request.contextPath}/styles/gteperu.css" />
        <link type="text/css" rel="stylesheet" href="${request.contextPath}/styles/login.css" />

    </h:head>


    <h:body>
        <c:choose>
            <c:when test="#{sessionScope.usuariologueado!=null}">
                <meta HTTP-EQUIV="REFRESH" content="0; url=${request.contextPath}/admin"></meta>
            </c:when>
        </c:choose>
        <div id="main_container">
            <ui:insert name="top">
            </ui:insert>
            <ui:insert name="center">
            </ui:insert>
            <ui:insert name="footer">

            </ui:insert>
        </div>
        <p:ajaxStatus onstart="statusDialog.show();" onsuccess="statusDialog.hide();"/>  
        <p:dialog showHeader="false" modal="true" widgetVar="statusDialog"
                  header="Status" draggable="false" closable="false" position="center"
                  resizable="false">
            <h:outputText value="Espere porfavor..." />
            <br />
            <p:graphicImage value="${request.contextPath}/../img/ajax-loader.gif" />
        </p:dialog>

    </h:body>
</html>






